<!--设备实时卡片：写入数据组件-->
<template>
  <div>
    <Row class="bbxx">
      <span class="bbxx1">写入数据到设备：</span>
    </Row>
    <Row :gutter="8" justify="start">
      <Col span="12">
        <InputNumber v-model="num" size="large" :min="1" :max="5" :step="1"></InputNumber>
      </Col>
      <Col span="12">
        <Button type="primary" size="large" @click="doSave">确定</Button>
      </Col>
    </Row>
  </div>
</template>

<script>
  export default {
    name: 'WritePart',
    props: ['did'],
    data: function () {
      return {
        num: 1
      }
    },
    methods: {
      doSave: function () {
        this.$Notice.success({
          title: '成功写入数据！',
        })
      }
    }
  }
</script>

<style scoped>

  .bbxx{
    text-align: left;
    margin-bottom: 10px;
  }
  .bbxx1{
    padding-bottom: 3px;
    margin-left: 10px;
    border-bottom: dashed 1px #d6d0d0
  }
</style>
